package com.bwie.controller;

import com.bwie.service.RedPacketService;
import com.bwie.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 军哥
 * @version 1.0
 * @description: TODO
 * @date 2025/7/28 15:18
 */

@RestController
@RequestMapping("/prod/packet")
public class RedPacketController {

    @Autowired
    RedPacketService redPacketService;

    @PostMapping("/getRedPacket/{activeId}")
    public R getRedPacket(@PathVariable("activeId") Integer activeId) {
        return redPacketService.getRedPacket(activeId);
    }

}
